<template>
  <div class="wrapper">
    <nav id="sidebar" class="sidebar">
      <div class="sidebar-content js-simplebar">
        <a class="sidebar-brand" href="index.html">
          <span class="align-middle">AdminKit</span>
        </a>

        <ul class="sidebar-nav">
          <li class="sidebar-header">
            Pages
          </li>

          <li class="sidebar-item active">
            <a class="sidebar-link" href="index.html">
              <i class="align-middle" data-feather="sliders"></i> <span class="align-middle">Dashboard</span>
            </a>
          </li>

          <li class="sidebar-item">
            <a class="sidebar-link" href="pages-profile.html">
              <i class="align-middle" data-feather="user"></i> <span class="align-middle">Profile</span>
            </a>
          </li>

          <li class="sidebar-item">
            <a class="sidebar-link" href="pages-settings.html">
              <i class="align-middle" data-feather="settings"></i> <span class="align-middle">Settings</span>
            </a>
          </li>

          <li class="sidebar-item">
            <a class="sidebar-link" href="pages-invoice.html">
              <i class="align-middle" data-feather="credit-card"></i> <span class="align-middle">Invoice</span>
            </a>
          </li>

          <li class="sidebar-item">
            <a class="sidebar-link" href="pages-blank.html">
              <i class="align-middle" data-feather="book"></i> <span class="align-middle">Blank</span>
            </a>
          </li>

          <li class="sidebar-header">
            Tools & Components
          </li>
          <li class="sidebar-item">
            <a href="#ui" data-toggle="collapse" class="sidebar-link collapsed">
              <i class="align-middle" data-feather="briefcase"></i> <span class="align-middle">UI Elements</span>
            </a>
            <ul id="ui" class="sidebar-dropdown list-unstyled collapse " data-parent="#sidebar">
              <li class="sidebar-item"><a class="sidebar-link" href="ui-alerts.html">Alerts</a></li>
              <li class="sidebar-item"><a class="sidebar-link" href="ui-buttons.html">Buttons</a></li>
              <li class="sidebar-item"><a class="sidebar-link" href="ui-cards.html">Cards</a></li>
              <li class="sidebar-item"><a class="sidebar-link" href="ui-general.html">General</a></li>
              <li class="sidebar-item"><a class="sidebar-link" href="ui-grid.html">Grid</a></li>
              <li class="sidebar-item"><a class="sidebar-link" href="ui-modals.html">Modals</a></li>
              <li class="sidebar-item"><a class="sidebar-link" href="ui-typography.html">Typography</a></li>
            </ul>
          </li>

          <li class="sidebar-item">
            <a class="sidebar-link" href="icons-feather.html">
              <i class="align-middle" data-feather="coffee"></i> <span class="align-middle">Icons</span>
            </a>
          </li>

          <li class="sidebar-item">
            <a href="#forms" data-toggle="collapse" class="sidebar-link collapsed">
              <i class="align-middle" data-feather="check-circle"></i> <span class="align-middle">Forms</span>
            </a>
            <ul id="forms" class="sidebar-dropdown list-unstyled collapse " data-parent="#sidebar">
              <li class="sidebar-item"><a class="sidebar-link" href="forms-layouts.html">Form Layouts</a></li>
              <li class="sidebar-item"><a class="sidebar-link" href="forms-basic-inputs.html">Basic Inputs</a></li>
            </ul>
          </li>

          <li class="sidebar-item">
            <a class="sidebar-link" href="tables-bootstrap.html">
              <i class="align-middle" data-feather="list"></i> <span class="align-middle">Tables</span>
            </a>
          </li>

          <li class="sidebar-header">
            Plugins & Addons
          </li>

          <li class="sidebar-item">
            <a class="sidebar-link" href="charts-chartjs.html">
              <i class="align-middle" data-feather="bar-chart-2"></i> <span class="align-middle">Charts</span>
            </a>
          </li>

          <li class="sidebar-item">
            <a class="sidebar-link" href="maps-google.html">
              <i class="align-middle" data-feather="map"></i> <span class="align-middle">Maps</span>
            </a>
          </li>
        </ul>

        <div class="sidebar-cta">
          <div class="sidebar-cta-content">
            <strong class="d-inline-block mb-2">Upgrade to Pro</strong>
            <div class="mb-3 text-sm">
              Are you looking for more components?
            </div>
            <a href="#" target="_blank" class="btn btn-outline-primary btn-block">Upgrade</a>
          </div>
        </div>
      </div>
    </nav>

    <div class="main">
      <nav class="navbar navbar-expand navbar-light navbar-bg">
        <a class="sidebar-toggle d-flex">
          <i class="hamburger align-self-center"></i>
        </a>

        <form class="form-inline d-none d-sm-inline-block">
          <div class="input-group input-group-navbar">
            <input type="text" class="form-control" placeholder="Search…" aria-label="Search">
            <div class="input-group-append">
              <button class="btn" type="button">
                <i class="align-middle" data-feather="search"></i>
              </button>
            </div>
          </div>
        </form>

        <div class="navbar-collapse collapse">
          <ul class="navbar-nav navbar-align">
            <li class="nav-item dropdown">
              <a class="nav-icon dropdown-toggle" href="#" id="alertsDropdown" data-toggle="dropdown">
                <div class="position-relative">
                  <i class="align-middle" data-feather="bell"></i>
                  <span class="indicator">4</span>
                </div>
              </a>
              <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right py-0" aria-labelledby="alertsDropdown">
                <div class="dropdown-menu-header">
                  4 New Notifications
                </div>
                <div class="list-group">
                  <a href="#" class="list-group-item">
                    <div class="row no-gutters align-items-center">
                      <div class="col-2">
                        <i class="text-danger" data-feather="alert-circle"></i>
                      </div>
                      <div class="col-10">
                        <div class="text-dark">Update completed</div>
                        <div class="text-muted small mt-1">Restart server 12 to complete the update.</div>
                        <div class="text-muted small mt-1">30m ago</div>
                      </div>
                    </div>
                  </a>
                  <a href="#" class="list-group-item">
                    <div class="row no-gutters align-items-center">
                      <div class="col-2">
                        <i class="text-warning" data-feather="bell"></i>
                      </div>
                      <div class="col-10">
                        <div class="text-dark">Lorem ipsum</div>
                        <div class="text-muted small mt-1">Aliquam ex eros, imperdiet vulputate hendrerit et.</div>
                        <div class="text-muted small mt-1">2h ago</div>
                      </div>
                    </div>
                  </a>
                  <a href="#" class="list-group-item">
                    <div class="row no-gutters align-items-center">
                      <div class="col-2">
                        <i class="text-primary" data-feather="home"></i>
                      </div>
                      <div class="col-10">
                        <div class="text-dark">Login from 192.186.1.8</div>
                        <div class="text-muted small mt-1">5h ago</div>
                      </div>
                    </div>
                  </a>
                  <a href="#" class="list-group-item">
                    <div class="row no-gutters align-items-center">
                      <div class="col-2">
                        <i class="text-success" data-feather="user-plus"></i>
                      </div>
                      <div class="col-10">
                        <div class="text-dark">New connection</div>
                        <div class="text-muted small mt-1">Christina accepted your request.</div>
                        <div class="text-muted small mt-1">14h ago</div>
                      </div>
                    </div>
                  </a>
                </div>
                <div class="dropdown-menu-footer">
                  <a href="#" class="text-muted">Show all notifications</a>
                </div>
              </div>
            </li>
            <li class="nav-item dropdown">
              <a class="nav-icon dropdown-toggle" href="#" id="messagesDropdown" data-toggle="dropdown">
                <div class="position-relative">
                  <i class="align-middle" data-feather="message-square"></i>
                </div>
              </a>
              <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right py-0" aria-labelledby="messagesDropdown">
                <div class="dropdown-menu-header">
                  <div class="position-relative">
                    4 New Messages
                  </div>
                </div>
                <div class="list-group">
                  <a href="#" class="list-group-item">
                    <div class="row no-gutters align-items-center">
                      <div class="col-2">
                        <img src="img/avatars/avatar-5.jpg" class="avatar img-fluid rounded-circle" alt="Vanessa Tucker">
                      </div>
                      <div class="col-10 pl-2">
                        <div class="text-dark">Vanessa Tucker</div>
                        <div class="text-muted small mt-1">Nam pretium turpis et arcu. Duis arcu tortor.</div>
                        <div class="text-muted small mt-1">15m ago</div>
                      </div>
                    </div>
                  </a>
                  <a href="#" class="list-group-item">
                    <div class="row no-gutters align-items-center">
                      <div class="col-2">
                        <img src="img/avatars/avatar-2.jpg" class="avatar img-fluid rounded-circle" alt="William Harris">
                      </div>
                      <div class="col-10 pl-2">
                        <div class="text-dark">William Harris</div>
                        <div class="text-muted small mt-1">Curabitur ligula sapien euismod vitae.</div>
                        <div class="text-muted small mt-1">2h ago</div>
                      </div>
                    </div>
                  </a>
                  <a href="#" class="list-group-item">
                    <div class="row no-gutters align-items-center">
                      <div class="col-2">
                        <img src="img/avatars/avatar-4.jpg" class="avatar img-fluid rounded-circle" alt="Christina Mason">
                      </div>
                      <div class="col-10 pl-2">
                        <div class="text-dark">Christina Mason</div>
                        <div class="text-muted small mt-1">Pellentesque auctor neque nec urna.</div>
                        <div class="text-muted small mt-1">4h ago</div>
                      </div>
                    </div>
                  </a>
                  <a href="#" class="list-group-item">
                    <div class="row no-gutters align-items-center">
                      <div class="col-2">
                        <img src="img/avatars/avatar-3.jpg" class="avatar img-fluid rounded-circle" alt="Sharon Lessman">
                      </div>
                      <div class="col-10 pl-2">
                        <div class="text-dark">Sharon Lessman</div>
                        <div class="text-muted small mt-1">Aenean tellus metus, bibendum sed, posuere ac, mattis non.</div>
                        <div class="text-muted small mt-1">5h ago</div>
                      </div>
                    </div>
                  </a>
                </div>
                <div class="dropdown-menu-footer">
                  <a href="#" class="text-muted">Show all messages</a>
                </div>
              </div>
            </li>
            <li class="nav-item dropdown">
              <a class="nav-icon dropdown-toggle d-inline-block d-sm-none" href="#" data-toggle="dropdown">
                <i class="align-middle" data-feather="settings"></i>
              </a>

              <a class="nav-link dropdown-toggle d-none d-sm-inline-block" href="#" data-toggle="dropdown">
                <img src="img/avatars/avatar.jpg" class="avatar img-fluid rounded mr-1" alt="Charles Hall" /> <span class="text-dark">Charles Hall</span>
              </a>
              <div class="dropdown-menu dropdown-menu-right">
                <a class="dropdown-item" href="pages-profile.html"><i class="align-middle mr-1" data-feather="user"></i> Profile</a>
                <a class="dropdown-item" href="#"><i class="align-middle mr-1" data-feather="pie-chart"></i> Analytics</a>
                <div class="dropdown-divider"></div>
                <a class="dropdown-item" href="pages-settings.html"><i class="align-middle mr-1" data-feather="settings"></i> Settings & Privacy</a>
                <a class="dropdown-item" href="#"><i class="align-middle mr-1" data-feather="help-circle"></i> Help Center</a>
                <div class="dropdown-divider"></div>
                <a class="dropdown-item" href="#">Log out</a>
              </div>
            </li>
          </ul>
        </div>
      </nav>

      <main class="content">
        <div class="container-fluid p-0">

          <div class="row mb-2 mb-xl-3">
            <div class="col-auto d-none d-sm-block">
              <h3><strong>Analytics</strong> Dashboard</h3>
            </div>

            <div class="col-auto ml-auto text-right mt-n1">
              <nav aria-label="breadcrumb">
                <ol class="breadcrumb bg-transparent p-0 mt-1 mb-0">
                  <li class="breadcrumb-item"><a href="#">AdminKit</a></li>
                  <li class="breadcrumb-item"><a href="#">Dashboards</a></li>
                  <li class="breadcrumb-item active" aria-current="page">Analytics</li>
                </ol>
              </nav>
            </div>
          </div>
          <div class="row">
            <div class="col-xl-6 col-xxl-5 d-flex">
              <div class="w-100">
                <div class="row">
                  <div class="col-sm-6">
                    <div class="card">
                      <div class="card-body">
                        <h5 class="card-title mb-4">Sales</h5>
                        <h1 class="display-5 mt-1 mb-3">2.382</h1>
                        <div class="mb-1">
                          <span class="text-danger"> <i class="mdi mdi-arrow-bottom-right"></i> -3.65% </span>
                          <span class="text-muted">Since last week</span>
                        </div>
                      </div>
                    </div>
                    <div class="card">
                      <div class="card-body">
                        <h5 class="card-title mb-4">Visitors</h5>
                        <h1 class="display-5 mt-1 mb-3">14.212</h1>
                        <div class="mb-1">
                          <span class="text-success"> <i class="mdi mdi-arrow-bottom-right"></i> 5.25% </span>
                          <span class="text-muted">Since last week</span>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="col-sm-6">
                    <div class="card">
                      <div class="card-body">
                        <h5 class="card-title mb-4">Earnings</h5>
                        <h1 class="display-5 mt-1 mb-3">$21.300</h1>
                        <div class="mb-1">
                          <span class="text-success"> <i class="mdi mdi-arrow-bottom-right"></i> 6.65% </span>
                          <span class="text-muted">Since last week</span>
                        </div>
                      </div>
                    </div>
                    <div class="card">
                      <div class="card-body">
                        <h5 class="card-title mb-4">Orders</h5>
                        <h1 class="display-5 mt-1 mb-3">64</h1>
                        <div class="mb-1">
                          <span class="text-danger"> <i class="mdi mdi-arrow-bottom-right"></i> -2.25% </span>
                          <span class="text-muted">Since last week</span>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>

            <div class="col-xl-6 col-xxl-7">
              <div class="card flex-fill w-100">
                <div class="card-header">

                  <h5 class="card-title mb-0">Recent Movement</h5>
                </div>
                <div class="card-body py-3">
                  <div class="chart chart-sm">
                    <canvas id="chartjs-dashboard-line"></canvas>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="row">
            <div class="col-12 col-md-6 col-xxl-3 d-flex order-2 order-xxl-3">
              <div class="card flex-fill w-100">
                <div class="card-header">

                  <h5 class="card-title mb-0">Browser Usage</h5>
                </div>
                <div class="card-body d-flex">
                  <div class="align-self-center w-100">
                    <div class="py-3">
                      <div class="chart chart-xs">
                        <canvas id="chartjs-dashboard-pie"></canvas>
                      </div>
                    </div>

                    <table class="table mb-0">
                      <tbody>
                      <tr>
                        <td>Chrome</td>
                        <td class="text-right">4306</td>
                      </tr>
                      <tr>
                        <td>Firefox</td>
                        <td class="text-right">3801</td>
                      </tr>
                      <tr>
                        <td>IE</td>
                        <td class="text-right">1689</td>
                      </tr>
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-12 col-md-12 col-xxl-6 d-flex order-3 order-xxl-2">
              <div class="card flex-fill w-100">
                <div class="card-header">

                  <h5 class="card-title mb-0">Real-Time</h5>
                </div>
                <div class="card-body px-4">
                  <div id="world_map" style="height:350px;"></div>
                </div>
              </div>
            </div>
            <div class="col-12 col-md-6 col-xxl-3 d-flex order-1 order-xxl-1">
              <div class="card flex-fill">
                <div class="card-header">

                  <h5 class="card-title mb-0">Calendar</h5>
                </div>
                <div class="card-body d-flex">
                  <div class="align-self-center w-100">
                    <div class="chart">
                      <div id="datetimepicker-dashboard"></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="row">
            <div class="col-12 col-lg-8 col-xxl-9 d-flex">
              <div class="card flex-fill">
                <div class="card-header">

                  <h5 class="card-title mb-0">Latest Projects</h5>
                </div>
                <table class="table table-hover my-0">
                  <thead>
                  <tr>
                    <th>Name</th>
                    <th class="d-none d-xl-table-cell">Start Date</th>
                    <th class="d-none d-xl-table-cell">End Date</th>
                    <th>Status</th>
                    <th class="d-none d-md-table-cell">Assignee</th>
                  </tr>
                  </thead>
                  <tbody>
                  <tr>
                    <td>Project Apollo</td>
                    <td class="d-none d-xl-table-cell">01/01/2020</td>
                    <td class="d-none d-xl-table-cell">31/06/2020</td>
                    <td><span class="badge badge-success">Done</span></td>
                    <td class="d-none d-md-table-cell">Vanessa Tucker</td>
                  </tr>
                  <tr>
                    <td>Project Fireball</td>
                    <td class="d-none d-xl-table-cell">01/01/2020</td>
                    <td class="d-none d-xl-table-cell">31/06/2020</td>
                    <td><span class="badge badge-danger">Cancelled</span></td>
                    <td class="d-none d-md-table-cell">William Harris</td>
                  </tr>
                  <tr>
                    <td>Project Hades</td>
                    <td class="d-none d-xl-table-cell">01/01/2020</td>
                    <td class="d-none d-xl-table-cell">31/06/2020</td>
                    <td><span class="badge badge-success">Done</span></td>
                    <td class="d-none d-md-table-cell">Sharon Lessman</td>
                  </tr>
                  <tr>
                    <td>Project Nitro</td>
                    <td class="d-none d-xl-table-cell">01/01/2020</td>
                    <td class="d-none d-xl-table-cell">31/06/2020</td>
                    <td><span class="badge badge-warning">In progress</span></td>
                    <td class="d-none d-md-table-cell">Vanessa Tucker</td>
                  </tr>
                  <tr>
                    <td>Project Phoenix</td>
                    <td class="d-none d-xl-table-cell">01/01/2020</td>
                    <td class="d-none d-xl-table-cell">31/06/2020</td>
                    <td><span class="badge badge-success">Done</span></td>
                    <td class="d-none d-md-table-cell">William Harris</td>
                  </tr>
                  <tr>
                    <td>Project X</td>
                    <td class="d-none d-xl-table-cell">01/01/2020</td>
                    <td class="d-none d-xl-table-cell">31/06/2020</td>
                    <td><span class="badge badge-success">Done</span></td>
                    <td class="d-none d-md-table-cell">Sharon Lessman</td>
                  </tr>
                  <tr>
                    <td>Project Romeo</td>
                    <td class="d-none d-xl-table-cell">01/01/2020</td>
                    <td class="d-none d-xl-table-cell">31/06/2020</td>
                    <td><span class="badge badge-success">Done</span></td>
                    <td class="d-none d-md-table-cell">Christina Mason</td>
                  </tr>
                  <tr>
                    <td>Project Wombat</td>
                    <td class="d-none d-xl-table-cell">01/01/2020</td>
                    <td class="d-none d-xl-table-cell">31/06/2020</td>
                    <td><span class="badge badge-warning">In progress</span></td>
                    <td class="d-none d-md-table-cell">William Harris</td>
                  </tr>
                  </tbody>
                </table>
              </div>
            </div>
            <div class="col-12 col-lg-4 col-xxl-3 d-flex">
              <div class="card flex-fill w-100">
                <div class="card-header">

                  <h5 class="card-title mb-0">Monthly Sales</h5>
                </div>
                <div class="card-body d-flex w-100">
                  <div class="align-self-center chart chart-lg">
                    <canvas id="chartjs-dashboard-bar"></canvas>
                  </div>
                </div>
              </div>
            </div>
          </div>

        </div>
      </main>

      <footer class="footer">
        <div class="container-fluid">
          <div class="row text-muted">
            <div class="col-6 text-left">
              <p class="mb-0">
                <a href="index.html" class="text-muted"><strong>AdminKit Demo</strong></a> &copy;
              </p>
            </div>
            <div class="col-6 text-right">
              <ul class="list-inline">
                <li class="list-inline-item">
                  <a class="text-muted" href="#">Support</a>
                </li>
                <li class="list-inline-item">
                  <a class="text-muted" href="#">Help Center</a>
                </li>
                <li class="list-inline-item">
                  <a class="text-muted" href="#">Privacy</a>
                </li>
                <li class="list-inline-item">
                  <a class="text-muted" href="#">Terms</a>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </footer>
    </div>
  </div>

</template>

<style>
@import "/static/css/app.css";
</style>
<script>
import "/static/js/app.js"

export default {
  name:"index",
  created() {
    $(function() {
      var ctx = document.getElementById('chartjs-dashboard-line').getContext("2d");
      var gradient = ctx.createLinearGradient(0, 0, 0, 225);
      gradient.addColorStop(0, 'rgba(215, 227, 244, 1)');
      gradient.addColorStop(1, 'rgba(215, 227, 244, 0)');
      // Line chart
      new Chart(document.getElementById("chartjs-dashboard-line"), {
        type: 'line',
        data: {
          labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
          datasets: [{
            label: "Sales ($)",
            fill: true,
            backgroundColor: gradient,
            borderColor: window.theme.primary,
            data: [
              2115,
              1562,
              1584,
              1892,
              1587,
              1923,
              2566,
              2448,
              2805,
              3438,
              2917,
              3327
            ]
          }]
        },
        options: {
          maintainAspectRatio: false,
          legend: {
            display: false
          },
          tooltips: {
            intersect: false
          },
          hover: {
            intersect: true
          },
          plugins: {
            filler: {
              propagate: false
            }
          },
          scales: {
            xAxes: [{
              reverse: true,
              gridLines: {
                color: "rgba(0,0,0,0.0)"
              }
            }],
            yAxes: [{
              ticks: {
                stepSize: 1000
              },
              display: true,
              borderDash: [3, 3],
              gridLines: {
                color: "rgba(0,0,0,0.0)"
              }
            }]
          }
        }
      });
    });
    $(function() {
      // Pie chart
      new Chart(document.getElementById("chartjs-dashboard-pie"), {
        type: 'pie',
        data: {
          labels: ["Chrome", "Firefox", "IE"],
          datasets: [{
            data: [4306, 3801, 1689],
            backgroundColor: [
              window.theme.primary,
              window.theme.warning,
              window.theme.danger
            ],
            borderWidth: 5
          }]
        },
        options: {
          responsive: !window.MSInputMethodContext,
          maintainAspectRatio: false,
          legend: {
            display: false
          },
          cutoutPercentage: 75
        }
      });
    });
    $(function() {
      // Bar chart
      new Chart(document.getElementById("chartjs-dashboard-bar"), {
        type: 'bar',
        data: {
          labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
          datasets: [{
            label: "This year",
            backgroundColor: window.theme.primary,
            borderColor: window.theme.primary,
            hoverBackgroundColor: window.theme.primary,
            hoverBorderColor: window.theme.primary,
            data: [54, 67, 41, 55, 62, 45, 55, 73, 60, 76, 48, 79],
            barPercentage: .75,
            categoryPercentage: .5
          }]
        },
        options: {
          maintainAspectRatio: false,
          legend: {
            display: false
          },
          scales: {
            yAxes: [{
              gridLines: {
                display: false
              },
              stacked: false,
              ticks: {
                stepSize: 20
              }
            }],
            xAxes: [{
              stacked: false,
              gridLines: {
                color: "transparent"
              }
            }]
          }
        }
      });
    });
    $(function() {
      $("#world_map").vectorMap({
        map: "world_mill",
        normalizeFunction: "polynomial",
        hoverOpacity: .7,
        hoverColor: false,
        regionStyle: {
          initial: {
            fill: "#e3eaef"
          }
        },
        markerStyle: {
          initial: {
            "r": 9,
            "fill": window.theme.primary,
            "fill-opacity": .95,
            "stroke": "#fff",
            "stroke-width": 7,
            "stroke-opacity": .4
          },
          hover: {
            "stroke": "#fff",
            "fill-opacity": 1,
            "stroke-width": 1.5
          }
        },
        backgroundColor: "transparent",
        zoomOnScroll: false,
        markers: [{
          latLng: [31.230391, 121.473701],
          name: "Shanghai"
        },
          {
            latLng: [28.704060, 77.102493],
            name: "Delhi"
          },
          {
            latLng: [6.524379, 3.379206],
            name: "Lagos"
          },
          {
            latLng: [35.689487, 139.691711],
            name: "Tokyo"
          },
          {
            latLng: [23.129110, 113.264381],
            name: "Guangzhou"
          },
          {
            latLng: [40.7127837, -74.0059413],
            name: "New York"
          },
          {
            latLng: [34.052235, -118.243683],
            name: "Los Angeles"
          },
          {
            latLng: [41.878113, -87.629799],
            name: "Chicago"
          },
          {
            latLng: [51.507351, -0.127758],
            name: "London"
          },
          {
            latLng: [40.416775, -3.703790],
            name: "Madrid"
          }
        ]
      });
      setTimeout(function() {
        $(window).trigger('resize');
      }, 250)
    });
    $(function() {
      $('#datetimepicker-dashboard').datetimepicker({
        inline: true,
        sideBySide: false,
        format: 'L'
      });
    });
  }
}
</script>
